<template>
  <div>123</div>
</template>
<script setup lang="ts">
import { Ref, ref } from "vue";
type person = {
  [prop: string]: string | number | Function;
};
// 定义变量方法一
const data: Ref<person> = ref({
  a: "",
});
// 方法二
const data2 = ref<person>({
  a: "",
});
</script>
<style scoped lang="scss"></style>
